<?php


Route::group(['prefix'=> 'admin'], function()
{    
    Route::post('login', 'UserController@entry');
    Route::post('register', 'UserController@entry');
    
    
    Route::group(['middleware' => 'auth:api'], function()
    {
        Route::get('logout', 'UserController@entry');
        Route::get('user/info', 'UserController@entry');
    });
});

